package com.hp.service;

import com.hp.entity.User;
import com.hp.result.DataGridResultInfo;
import com.hp.result.SubmitResultInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public interface UserService {
    public DataGridResultInfo page(int page, int rows);

    public SubmitResultInfo adduser(User user) throws Exception;

    public User findById(int id);

    public SubmitResultInfo authrole(int userid, int roleid);

    public String dologin(User user, HttpSession session, HttpServletRequest request, HttpServletResponse response) throws Exception;

    int updatePwd(User user) throws Exception;
}
